package cn.itsource.basic.base.mapper;

import cn.itsource.basic.base.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    void insert(T t);

    void delete(Long id);

    void update(T t);

    T loadById(Long id);

    List<T> loadAll();

    Long count(BaseQuery query);

    List<T> pageData(BaseQuery query);

    void batchRemove(List<Long> ids);
}
